package cn.itsource.romate.api;

import cn.itsource.pojo.api.DriverResult;
import cn.itsource.result.R;
import cn.itsource.romate.fallback.DriverFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 📖：beishan
 * 🗓️：2024/4/18 18:56
 * =====================
 */
@FeignClient(value = "it-fccar-service-driver",fallbackFactory = DriverFallback.class)
public interface DriverApi {
    @GetMapping("/api/driver/summary")
    R<DriverResult> getDriverSummary(@RequestParam Long driverId);
}
